home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / PDCUR24B.ZIP / contrib / pdcur24 / INSTALL < prev    next >
Encoding:
Text File  |  1997-05-05  |  4.0 KB  |  128 lines

  1.                     Welcome to PDCurses !
  2.  
  3.  This file provides information on installing PDCurses on DOS, OS/2,
  4.  Win95/NT or for X11 and building the PDCurses library.
  5.  
  6.  The first step is to unpack the archive. (You've already done that!)
  7.  
  8.  Next, go to the section below for the platform you intend to build
  9.  the software on, and follow the steps there.
  10.  
  11.  OS2
  12.  ---
  13.  . cd to the OS2 directory in the directory in which PDCurses was
  14.    unpacked.
  15.  . You will find a number of .mak files in this directory, one for
  16.    each supported compiler.  These following lists the make file
  17.    and compiler:
  18.  
  19.          gccos2.mak - emx 0.9b+
  20.          iccos2.mak - C Set/2
  21.          bccos2.mak - Borland C++ 2.0
  22.          wccos2.mak - Watcom 10.6
  23.          mscos2.mak - Microsoft C 6.0
  24.  
  25.  . Create a directory somewhere in which you want the object, library
  26.    and demo executables to be built.
  27.  . cd to that directory.
  28.  . Copy the appropriate makefile to this directory.
  29.  . Edit this makefile, and make a few changes to paths that point to
  30.    the location of the PDCurses code and your compiler. The lines
  31.    you need to change are:
  32.  
  33.         PDCURSES_HOME=
  34.         CC_HOME=
  35.  
  36.  . Make the required targets using the options specified at the top
  37.    of the makefile.
  38.  
  39.  . Thats it!
  40.  
  41.  
  42.  DOS
  43.  ---
  44.  . cd to the DOS directory in the directory in which PDCurses was
  45.    unpacked.
  46.  . You will find a number of .mak files in this directory, one for
  47.    each supported compiler.  These following lists the make file
  48.    and compiler:
  49.  
  50.          gccdos.mak   - DJGPP V2
  51.          bccdos.mak   - Borland C++ 3.0+
  52.          wccdos16.mak - Watcom 10.6 (16bit)
  53.          wccdos4g.mak - Watcom 10.6 (32bit)
  54.          mscdos.mak   - Microsoft C 6.0
  55.  
  56.  . Create a directory somewhere in which you want the object, library
  57.    and demo executables to be built.
  58.  . cd to that directory.
  59.  . Copy the appropriate makefile to this directory.
  60.  . Edit this makefile, and make a few changes to paths that point to
  61.    the location of the PDCurses code and your compiler. The lines
  62.    you need to change are:
  63.  
  64.         PDCURSES_HOME=
  65.         CC_HOME=
  66.         MODEL=   (if your compiler supports memory models)
  67.  
  68.  . Make the required targets using the options specified at the top
  69.    of the makefile.
  70.  
  71.  . Thats it!
  72.  
  73.  
  74.  Win95/NT
  75.  --------
  76.  . cd to the WIN32 directory in the directory in which PDCurses was
  77.    unpacked.
  78.  . You will find a number of .mak files in this directory, one for
  79.    each supported compiler.  These following lists the make file
  80.    and compiler:
  81.  
  82.          gccwin32.mak   - Cygnus GNU Compiler
  83.          bccwin32.mak   - Borland C++ 4.0.2+
  84.          vcwin32.mak    - Visual C++ 2.0+
  85.          wccwin32.mak   - Watcom 10.6
  86.  
  87.  . Create a directory somewhere in which you want the object, library
  88.    and demo executables to be built.
  89.  . cd to that directory.
  90.  . Copy the appropriate makefile to this directory.
  91.  . Edit this makefile, and make a few changes to paths that point to
  92.    the location of the PDCurses code and your compiler. The lines
  93.    you need to change are:
  94.  
  95.         PDCURSES_HOME=
  96.         CC_HOME=
  97.  
  98.  . Make the required targets using the options specified at the top
  99.    of the makefile.
  100.  
  101.  . Thats it!
  102.  
  103.  
  104.  X11
  105.  ---
  106.  
  107.  To install PDCurses for X (aka XCurses), follow these instructions.
  108.  
  109.  Run the configure script that is in the PDCurses-x.x directory. This
  110.  will interrogate your system and check that you have the necessary 
  111.  support XCurses requires.
  112.  
  113.  If configure cannot find your X include files or X libraries, you can
  114.  specify the paths with --x-includes=inc_path or --x-libraries=lib_path
  115.  as arguments to the configure script.
  116.  
  117.  configure also recognises the --with-debug[=yes|no] switch. By default
  118.  the library and demo programs are built with the optimiser switch; -O.
  119.  You can turn this off and debugging (-g) on by adding --with-debug to the
  120.  configure command.
  121.  
  122.  Once configure has run, run "make". This should make the XCurses library,
  123.  the panels library and all demo programs in the demos directory.
  124.  
  125.  Alternately, you can cd to "pdcurses" directory, and run "make" from
  126.  here.  This will build libpdcurses.a only.
  127.  
  128.